//
//package com.rt.schedulebase.service.impl;
//import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
//import com.baomidou.mybatisplus.core.conditions.Wrapper;
//import java.util.Map;
//import java.util.HashMap;
//import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
//import java.util.List;
//import com.rt.schedulebase.dto.DictHospitalDto;
//import java.io.Serializable;
//import org.springframework.beans.factory.annotation.Autowired;
//import com.rt.schedulebase.service.IDictScheduleHospitalService;
//import com.rt.schedulebase.service.IDictHospitalService;
//import com.rt.schedulebase.entity.DictHospital;
//import com.rt.schedulebase.mapper.DictHospitalMapper;
//import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
//public class DictHospitalServiceImpl extends ServiceImpl<DictHospitalMapper, DictHospital> implements IDictHospitalService
//{
//    @Autowired
//    IDictScheduleHospitalService dictScheduleHospitalService;
//
//@Override
//    public boolean insertSelective(final DictHospital dictHospital) {
//        return this.retBool(Integer.valueOf(((DictHospitalMapper)this.baseMapper).insert(dictHospital)));
//    }
//
//@Override
//    public boolean deleteByPrimaryKey(final String key) {
//        return this.retBool(Integer.valueOf(((DictHospitalMapper)this.baseMapper).deleteById((Serializable)key)));
//    }
//
//@Override
//    public boolean updateByPrimaryKeySelective(final DictHospital dictHospital) {
//        return this.retBool(Integer.valueOf(((DictHospitalMapper)this.baseMapper).updateById(dictHospital)));
//    }
//
//@Override
//    public DictHospital selectByPrimaryKey(final String key) {
//        return (DictHospital)((DictHospitalMapper)this.baseMapper).selectById((Serializable)key);
//    }
//
//@Override
//    public List<DictHospital> getList(final DictHospitalDto dto) {
//        final QueryWrapper<DictHospital> qw = (QueryWrapper<DictHospital>)new QueryWrapper();
//        final Map<String, Object> map = new HashMap<String, Object>();
//        map.put("HOSPITAL_CODE", dto.getHospitalCode());
//        map.put("HOSPITAL_ALIAS", dto.getHospitalAlias());
//        map.put("HOSPITAL_NAME", dto.getHospitalName());
//        qw.allEq((Map)map, false);
//        qw.orderByAsc("SORT_NO");
//        final List<DictHospital> list = (List<DictHospital>)((DictHospitalMapper)this.baseMapper).selectList((Wrapper)qw);
//        return list;
//    }
//
//@Override
//    public List<DictHospital> getListAll() {
//        return (List<DictHospital>)((DictHospitalMapper)this.baseMapper).selectList((Wrapper)null);
//    }
//
//@Override
//    public boolean delete(final DictHospital dictHospital) {
//        final UpdateWrapper<DictHospital> uw = (UpdateWrapper<DictHospital>)new UpdateWrapper();
//        final Map<String, Object> map = new HashMap<String, Object>();
//        map.put("HOSPITAL_CODE", dictHospital.getHospitalCode());
//        uw.allEq((Map)map, false);
//        return this.retBool(Integer.valueOf(((DictHospitalMapper)this.baseMapper).delete((Wrapper)uw)));
//    }
//
//@Override
//    public boolean update(final DictHospital dictHospital) {
//        final UpdateWrapper<DictHospital> uw = (UpdateWrapper<DictHospital>)new UpdateWrapper();
//        final Map<String, Object> map = new HashMap<String, Object>();
//        map.put("HOSPITAL_CODE", dictHospital.getHospitalCode());
//        uw.allEq((Map)map, false);
//        return this.retBool(Integer.valueOf(((DictHospitalMapper)this.baseMapper).update(dictHospital, (Wrapper)uw)));
//    }
//
//@Override
//    public DictHospital getInfo(final DictHospitalDto dto) {
//        final QueryWrapper<DictHospital> qw = (QueryWrapper<DictHospital>)new QueryWrapper();
//        final Map<String, Object> map = new HashMap<String, Object>();
//        map.put("HOSPITAL_CODE", dto.getHospitalCode());
//        map.put("HOSPITAL_NAME", dto.getHospitalName());
//        qw.allEq((Map)map, false);
//        return (DictHospital)((DictHospitalMapper)this.baseMapper).selectOne((Wrapper)qw);
//    }
//}
